package com.dmall.promotion.useraop.handler.impl;

import com.alibaba.fastjson.JSON;
import com.dmall.promotion.annotation.ListenUserOperation;
import com.dmall.promotion.enums.UserOperationEnum;
import com.dmall.promotion.useraop.event.UserOperationEvent;
import com.dmall.promotion.useraop.handler.AbsUserOperationHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 业务操作handler
 * @author xiao1.wang
 * @date 2021-06-03 21:55:33
 */
@Slf4j
@Component
@ListenUserOperation(value = {UserOperationEnum.ADD, UserOperationEnum.MODIFY, UserOperationEnum.DELETE}, order = 1)
public class Operation3Handler extends AbsUserOperationHandler {

    @Override
    public void doOperationLogic(UserOperationEvent event) {
        log.info("Operation3Handler doUserOperLogic event={}", JSON.toJSONString(event));
    }
}
